07. 练习:SUM
聚合问题
以下是一个 SQL 环境,用于计算以下每个问题的答案。如果你遇到问题或想要查看答案,可以在下一页面的顶部找到答案。
-
算出
orders
表格中的
poster_qty
纸张总订单量。
-
算出
orders
表格中
standard_qty
纸张的总订单量。
-
根据
orders
表格中的
total_amt_usd
得出总销售额。
-
算出 orders 表格中每个订单在
standard
和
gloss
纸张上消费的数额。结果应该是表格中每个订单的金额。
- 每个订单的 price/standard_qty 纸张各不相同。我想得出 orders 表格中每个销售机会的这一比例。
Workspace
This section contains either a workspace (it can be a Jupyter Notebook workspace or an online code editor work space, etc.) and it cannot be automatically downloaded to be generated here. Please access the classroom with your account and manually download the workspace to your local machine. Note that for some courses, Udacity upload the workspace files onto https://github.com/udacity , so you may be able to download them there.
Workspace Information:
- Default file path:
- Workspace type: sql-evaluator
- Opened files (when workspace is loaded): n/a